<template>
  姓名:{{person.name}}  年龄:{{person.age}}<br>
  <button @click="person.name+='-'"></button>
  <button @click="person.age++"></button>

</template>

<script lang="ts" setup>
  import {reactive} from "vue";

  const person=reactive({
    name:'张三',
    age:18
  })
</script>

<style>

</style>
